<?php
class PageIndexAction extends FrontendAction
{
	public function __construct()
	{
		parent::__construct();
		$this->responseType = 'tpl';
		$this->layout = 'page';
	}
	
	public function execute()
	{
		$pageService	= new PageService();
		$page			= $pageService->getByUrl($this->context->get('url'));
		$this->data['page']			= $page;
		
		$this->data['seo']['title']			= $page['title'];
		$this->data['seo']['keyword']		= $page['keywords'];
		$this->data['seo']['description']	= $page['descriptions'];
	}
}
